{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
				{%if $award_type==1%}
                    <a href="index.php?a=award.classsetlist&award_type=1" class="btn btn-primary">班级奖励行为</a>
                    <a href="index.php?a=award.classsetlist&award_type=2" class="btn btn-default">班级违规行为</a>
				{%else%}
					<a href="index.php?a=award.classsetlist&award_type=1" class="btn btn-default">班级奖励行为</a>
                    <a href="index.php?a=award.classsetlist&award_type=2" class="btn btn-primary">班级违规行为</a>
				{%/if%}
				{%if $award_type==1%}
                    <a href="index.php?a=award.awardclassadd" class="btn btn-primary btn-sm" style="float:right"> 新 增 </a>
				{%else%}
					<a href="index.php?a=award.punishclassadd" class="btn btn-primary btn-sm" style="float:right"> 新 增 </a>
				{%/if%}
                </div>
                   <div class="box-body">
                       <table class="table table-bordered table-striped "  id="mytable">
                                <thead>
                                    <tr style="background-color:#6168fe ">
                                        <td>{%$award_tname%}行为</td>
                                        <td>{%$award_tname%}学分</td>
                                        <td width="130">操作</td>
                                    </tr>	
                                </thead>
                                <tbody>
								{%foreach from=$award_lists key=key item=value%}
                                     <tr>
                                        <td>{%$value.award_title%}</td>
                                        <td>{%$value.award_credit%}</td>
                                        <td>
                                        	  <a href="index.php?a=award.classsetupdate&award_type={%$value.award_type%}&award_id={%$value.award_id%}" class="btn btn-warning btn-sm" title="修改"> <i class="fa fa-edit (alias)"></i>  </a>
                    						  <a href="index.php?a=award.classsetdel&award_type={%$value.award_type%}&award_id={%$value.award_id%}" title="删除" class="btn btn-danger btn-sm" onclick="if(confirm('警告！确认删除信息?')==false)return false;"> <i class="fa fa-trash"></i> </a>
                                        </td>
                                    </tr>
                                {%/foreach%}    
                            </tbody>
                        </table>
				   </div><!--box-body -->
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
